package com.xnyzc.lhy.mis.entity.gps;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 司机车辆实时定位表
 * </p>
 *
 * @author huxuekuo
 * @since 2019-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "OaDVehicleGps对象", description = "司机车辆实时定位表")
public class OaDVehicleGps implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "gps_id", type = IdType.INPUT)
    private Long gpsId;

    @ApiModelProperty(value = "司机ID")
    private Long driverId;

    @ApiModelProperty(value = "司机名字")
    @TableField(exist = false)
    private String driverName;

    @ApiModelProperty(value = "手机号")
    @TableField(exist = false)
    private String phone;

    @ApiModelProperty(value = "车牌号")
    @TableField(exist = false)
    private String motorcadeNum;

    @ApiModelProperty(value = "车辆ID")
    private Long vehId;

    @ApiModelProperty(value = "实时经度")
    private String lng;

    @ApiModelProperty(value = "实时纬度")
    private String lat;

    @ApiModelProperty(value = "实时速度")
    private String speed;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "订单ID(null则在休息状态)")
    private String orderNo;

    @ApiModelProperty(value = "行程类型(0-非私用 1-私用)")
    private int strokeStatus;

    @ApiModelProperty(value = "车辆类型(0-经济型,1-舒适性,2-商务型,3-豪华型)")
    private int vehType;

    @ApiModelProperty(value = "距离用户里程")
    @TableField(exist = false)
    private double distance;
    @ApiModelProperty(value = "订单状态")
    @TableField(exist = false)
    private int orderStatus;

    @ApiModelProperty(value = "是否有订单")
    @TableField(exist = false)
    private int isTrue;

    public static final String GPS_ID = "gps_id";

    public static final String DRIVER_ID = "driver_id";

    public static final String VEH_ID = "veh_id";

    public static final String LNG = "lng";

    public static final String LAT = "lat";

    public static final String SPEED = "speed";

    public static final String TAG = "tag";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String EXPAND3 = "expand3";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

    public static final String ORDER_NO = "order_no";

}
